Reboot/Save

Save configuration to startup-config

Reboot the switch

Restore factory configuration to startup-config